<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>注册界面</title>
<link rel="stylesheet" type="text/css" href="注册页面.css">
</head>
<script type="text/javascript">
    function check(){
	if(document.getElementById("password").value!=
		document.getElementById("password_check").value)
	{
		alert("两次输入的密码不相同!");
        return false;
	}else{
		return true;
	}
}
    function check_email(){
        var x=document.getElementById("email").value;
        var atpos=x.indexOf('@');
        var dotops=x.lastIndexOf(".");
        if(atpos==-1||dotops==-1){
            alert("这不是一个有效的e-mail地址");
            return false;
        }
        else{
            return true;
        }
    }
</script>
</head>
<body background="mon.jpg" style="background-size: cover;">
    <div class="wrap box">
        <br>
        <br>
        <h1>管理端注册</h1>
        <form action="form_action.asp" method="get">
            <div class="input-group">
                <span style="padding-left: 2px;">name:</span>
                <input type="text" name="" class="form-control1" placeholder="请输入用户名">
            </div>
            <br>
            <div class="input-group">
                新密码:<input type="password" name="newpassword" id="password" class="form-control1" placeholder="请输入新密码">
            </div>
            <br>
            <div class="input-group">
                确认新密码:<input type="password" name="rightnewpassword" id="password_check" class="form-control1" placeholder="确认新密码"">
            </div>
            <br>
            <div class="input-group">
                邮箱:<input type="text" id="email" class="form-control1" name="address" placeholder="请输入邮箱">
            </div>
            <div class="button-group">
                <input  type="submit" value="同意并注册" class="button1" onclick="check();check_email()"/>
            </div>
            <div class="point">
                <input type="checkbox"/>
                <span style="font-size: 5px;">已阅读并同意以下协议<span class="style">平台服务协议、隐私权政策、法律声明、及客户端服务协议</span></span>
                <br />
            </div>
        </form>
        <form action="form_action.asp" method="get">
            <div class="input-groups">
                验证码:<input type="text" name="score" class="form-control" placeholder="验证码">
            </div>
            <div class="input-grouper">
                <input type="submit" class="input-groupers" value="获取验证码"/>
            </div>
        </form>
    </div>
</body>
</html>